package cn.gok.oop;

/**
 * @ClassName 重载
 * @Description TODO
 * @Author HP
 * @Date 15:41 2022/7/5
 * @Version 1.0
 **/
class Calculator{
    public String add(String str,int n){
        String x = new String();
        for(int i =n;i<=n;i++){

             x =x + str;
            }
         return x;
    }
}
public class 重载 {
    public static void main(String[] args) {
        Calculator calculator = new Calculator();

    }
}
